package com.jsz.peini.mapper.user;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import com.jsz.peini.bean.user.UserImage;
import com.jsz.peini.bean.user.UserImageExample;

public interface UserImageMapper {

    //查询用户最多四张照片
    List<HashMap<String,Object>> selectByUserId(String userId);
    //插入用户相册照片
    int insertUserImageById(UserImage userImage);
    //根据图片id查询图片
    UserImage selectUserImageByUserId(int id);
    //删除图片
    int deleteUserImageByUserId(int id);
    //查询用户所有图片
    List<LinkedHashMap<String,Object>> selectUserImageAllByUserId(String userId);
    
	//查询用户某些日子的图片
    List<LinkedHashMap<String,Object>> selectUserImageByUserIdAndTimes(HashMap<String, Object> map);
    
    //照片分组
    List<LinkedHashMap<String,Object>> selectUserImageTypeByUserId(String userId);
    
    long countByExample(UserImageExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserImage record);

    int insertSelective(UserImage record);

    List<UserImage> selectByExample(UserImageExample example);

    UserImage selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserImage record);

    int updateByPrimaryKey(UserImage record);
    
}